package com.biboheart.demo.report.support.jpa;

import jakarta.persistence.criteria.Predicate;

import java.util.List;

public class JpaUtils {
    public static Predicate[] listPredicateToArray(List<Predicate> list) {
        if (null == list || list.isEmpty()) {
            return null;
        }
        Predicate[] preArr = new Predicate[list.size()];
        return list.toArray(preArr);
    }
}
